<?php
namespace app\admin\model;

use think\model;
class StudentModel extends Model{
    protected $name = 'student';
    public function classroom(){
        return $this->hasOne('ClassroomModel','id','class_id');
    }
    public function score(){
        return $this->hasOne('ScoreModel','sid','id');
    }
    public function Plist(){
        return $this->hasOne('PlistModel','sid','id');
    }
}